package com.test.design_pattern.strategy.demo1;

/**
 * @author : zhangwei
 * @date : 2020-07-22
 **/
public class Client {
    public static void main(String[] args) {
        ProfitStrategy profitStrategy = new ProfitStrategyB();
        Profit profit = new Profit(profitStrategy);
        System.out.println(profit.getProfit(100D));
    }
}
